//
//  CollectCell.m
//  LiWuShuo
//
//  Created by 袁小航 on 14/11/20.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "CollectCell.h"
#import "Define.h"

@implementation CollectCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
//        设置自定义user界面 收藏cell
        [self defineUserCollectCell];
    }
    return self;
}

#pragma mark - 设置自定义user界面 收藏cell
- (void)defineUserCollectCell
{
    self.collImageV = [[UIImageView alloc]initWithFrame:CGRectMake(10, (USER_CELL_HEIGHT - USER_CELL_IMAGE_HEIGHT) / 2, USER_CELL_IMAGE_WIDTH, USER_CELL_IMAGE_HEIGHT)];
    _collImageV.layer.cornerRadius = 5;
    _collImageV.layer.masksToBounds = YES;
    [self.contentView addSubview:_collImageV];
    
    self.collInfoV = [[UILabel alloc]initWithFrame:CGRectMake(20 + USER_CELL_IMAGE_WIDTH, _collImageV.frame.origin.y, USER_MAIN_WIDTH - USER_CELL_IMAGE_WIDTH - 30, _collImageV.frame.size.height)];
    _collInfoV.numberOfLines = 2;
    _collInfoV.textColor = [UIColor grayColor];
    _collInfoV.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:_collInfoV];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
